package com.gdyd.boot.service.impl;

import com.gdyd.boot.bean.User;
import com.gdyd.boot.mapper.IUserMapper;
import com.gdyd.boot.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    IUserMapper userMapper;

    @Override
    public List<User> findAllUsers() {
        return userMapper.findAllUsers();
    }

    @Override
    public User findUserById(int id) {
        return userMapper.findUserById(id);
    }
}
